﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 获取系统参数的请求
    /// </summary>
    /// <remarks>
    /// typedef  struct
    /// {
    ///      Uint32  boardType;        //单版类型
    ///      T_SYS_TIME  sysTime;      //系统时间 
    ///      Uint8   devName[12];      //设备名称                                       
    /// } T_HIPC_SYS_CONFIG;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_HIPC_SYS_CONFIG
    {
        #region Fields

        /// <summary>
        /// 单版类型
        /// </summary>
        public UInt32 boardType;

        /// <summary>
        /// 系统时间
        /// </summary>
        public T_SYS_TIME sysTime;

        /// <summary>
        /// 设备名称
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)]
        public byte[] devName;

        #endregion
    }
}
